import { type FC } from 'react';
import Resize from '../Resize';
import PreviewContent from './content';
import type { PreviewImagesProps } from './types';
import styles from './styles';

const PreviewImages: FC<PreviewImagesProps> = (props) => {
  return (
    <Resize style={props.wrapperStyle}>
      {({ width }) => <PreviewContent {...props} width={width} />}
    </Resize>
  );
}

export default PreviewImages;